﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T_settlement.Infrastructure.Migrations
{
    public partial class 结算 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Settlement",
                columns: table => new
                {
                    SettlementId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Number = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Nnit = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PayType = table.Column<int>(type: "int", nullable: true),
                    Tonnage = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    NnitPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Amount = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    BusinessTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Attn = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
                    CheckState = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Settlement", x => x.SettlementId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Settlement");
        }
    }
}
